package com.jd.orm.framework.core.transaction;

/**
 * 
 * ClassName: Status <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON. <br/>
 * date: 2014-5-13 上午9:29:35 <br/>
 * 
 * @author liubing1@jd.com
 * @version
 * @since up JDK 1.5
 */
public enum Status {

	STATUS_ACTIVE(0),

	STATUS_MARKED_ROLLBACK(1),

	STATUS_PREPARED(2),

	STATUS_COMMITTED(3),

	STATUS_ROLLEDBACK(4),

	STATUS_UNKNOWN(5),

	STATUS_NO_TRANSACTION(6),

	STATUS_PREPARING(7),

	STATUS_COMMITTING(8),

	STATUS_ROLLING_BACK(9);

	private int value;

	Status(int value) {
		this.value = value;
	}

	public int value() {
		return value;
	}
}
